import Axios from 'axios';

const axios = Axios.create({
  baseURL: '',
  timeout: 60000,
  cache: false,
  headers: {
    'Content-Type': 'application/json',
    'Cache-Control': 'no-cache',
  },
});
axios.interceptors.request.use(config => {
  return config;
})
axios.interceptors.response.use(response =>
{
  if (response.status === 200){
    return Promise.resolve(response.data)
  }else {
    return Promise.reject(response.err)
  }
})
export default axios;
